<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="UserBean" class="user.UserBean" scope="session"/>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Check Login</title>
	</head>
	<body>
		<%
			 if(!UserBean.isLoggedIn())
			{
				response.sendRedirect("login.html");
				return;
			} 
			
		%>
		
		<h3> hello <%= UserBean.getFullname() + " at " + UserBean.getLocation() %></h3>
		</body>
</html>